package cn.zh.mapper;

import cn.zh.entity.Houseresource;
import cn.zh.entity.User;
import cn.zh.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ResourceMapper {

    List<Houseresource> serach(String pattern);

    UserVo userVo(String houseUsername);

    void audit(UserVo userVo);

    void delete(Integer id);



    Long count();

    List<Houseresource> listup(String pattern);

    List<Houseresource> listdown(String pattern);

    List<Houseresource> list(String pattern);

    Houseresource byId(Integer id);

    void insert(Houseresource houseresource);

    List<Houseresource> serachHouseByUsername(@Param("pattern") String pattern, @Param("username") String username);
}
